import type { RouteRecordRaw } from "vue-router";
import { Layout } from "jmash-core";
export const DealWithPage = () => import("@/views/flow/todotask/dealwith.vue");
export const BpmnPage = () => import("@/views/flow/procdef/bpmn.vue");
export const TaskInfo = () => import("@/views/flow/doneinst/info.vue");
export const sendMessageInfoPage = () =>
  import("@/views/flow/todotask/sendMessage.vue");

const constantRoutes: RouteRecordRaw[] = [
  {
    path: "/rawflow",
    component: Layout,
    name: "flow",
    meta: {
      hidden: true,
    },
    children: [
      {
        path: "task/dealwith",
        component: DealWithPage,
        name: "TaskDealWith",
        meta: {
          hidden: true,
          title: "任务处理",
          icon: "user",
        },
      },
      {
        path: "procdef/bpmn",
        component: BpmnPage,
        name: "bpmn1",
        meta: {
          hidden: true,
          itle: "流程编辑",
          icon: "user",
        },
      },

      {
        path: "doneinst/info",
        component: TaskInfo,
        name: "bpmn1",
        meta: {
          hidden: true,
          title: "事项详情",
          icon: "",
        },
      },
      {
        path: "todotask/sendMessage",
        component: sendMessageInfoPage,
        name: "sendMessage",
        meta: {
          hidden: true,
          title: "发送模版消息",
          icon: "",
        },
      },
    ],
  },
];
export default constantRoutes;
